package com.jkoss.wine.statistics.service.impl;

import com.baomidou.mybatisplus.mapper.SqlHelper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.jkoss.wine.statistics.entity.CardRecharge;
import com.jkoss.wine.statistics.mapper.CardRechargeMapper;
import com.jkoss.wine.statistics.service.ICardRechargeService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 *  服务实现类
 * 
 * @Author bg2it
 * @Version 1.0, 2019-08-13
 * @See
 * @Since com.jkoss.wine.statistics.service.impl
 * @Description: TODO
 */
@Service
public class CardRechargeServiceImpl extends ServiceImpl<CardRechargeMapper, CardRecharge> implements ICardRechargeService {
    @Override
    public Page selectVoByPage(Page page, Wrapper wrapper) {
        SqlHelper.fillWrapper(page, wrapper);
        page.setRecords(baseMapper.selectVoByPage(page,wrapper));
        return page;
    }

    @Override
    public List selectVo(Wrapper wrapper) {
        List list = baseMapper.selectVo(wrapper);
        return list;
    }
}
